<?php defined('IN_IA') or exit('Access Denied');?><!DOCTYPE html><html>
<head>
	<title><?php  echo $pic_info['album_name'];?></title>
	<meta name="author" content="" />
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
	<link href="<?php  echo MODULE_URL;?>/template/mobile/css/styles.css?dr=4kk4s" type="text/css" rel="stylesheet" />
	
	<link href="<?php  echo MODULE_URL;?>/template/mobile/css/photoswipe.css" type="text/css" rel="stylesheet" />
	
	<script type="text/javascript" src="<?php  echo MODULE_URL;?>/template/mobile/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="<?php  echo MODULE_URL;?>/template/mobile/js/simple-inheritance.min.js"></script>
	<script type="text/javascript" src="<?php  echo MODULE_URL;?>/template/mobile/js/code-photoswipe-1.0.19.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#Gallery a").photoSwipe();
			$("#MainContent").hide();
		});
	</script>
</head>
<body>
	<div id="loadingshow">
	     <a id="loadingwords" class="loadingImg1">
	     	<div class="page-container">
	            <form id="login">
	                <input type="text" name="username" class="username" placeholder="请输入全国连锁证书编号">
	                <input type="password" name="password" class="password" placeholder="请输入密码">
	                <span class="submit_button">登录</span>
	            </form>
	        </div>
	     </a>
	</div>

	
	<div id="MainContent">
		<div class="page-content">
			<h1><?php  echo $pic_info['album_name'];?></h1>
		</div>
		<div id="Gallery">
			<div class="gallery-row">
				<?php  if(is_array($reply)) { foreach($reply as $item) { ?>
				<div class="gallery-item"><a href="<?php  echo $_W['attachurl'];?><?php  echo $item['pic'];?>"><img src="<?php  echo $_W['attachurl'];?><?php  echo $item['pic'];?>" alt="<?php  echo $item['pic_name'];?>" /></a></div>
				<?php  } } ?>
			</div>
		</div>
	</div>	
	
<script>
	jQuery(document).ready(function() {
	    $('.submit_button').click(function(){
	        var username = $('.username').val();
	        var password = $('.password').val();
	        var users = <?php  echo json_encode($users);?>;
	        for (var i = users.length - 1; i >= 0; i--) {
         		if(username == users[i]['user_name'] && password == users[i]['password']) {
	        		$("#loadingwords").hide();
	            	$("#loadingshow").hide();
	            	$("#MainContent").slideDown(3000);
	        	}
	        }
	    });
	});
</script>
</body>
</html>